<template>
  <div id="app">
    <router-view />
    <router-link v-for="(item, index) in list" :key="index" :to="item.path">
      {{
      item.name
      }}
    </router-link>|
  </div>
</template>
<script lang="ts">
import Vue from "vue";
import RouterConfig from "./router/router.config";
export default Vue.extend({
  data() {
    return {
      list: RouterConfig,
    };
  },
});
</script>
<style>
@import "./assets/icon/iconfont.css";
* {
  list-style: none;
  margin: 0;
  padding: 0;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}
#app > div {
  width: 100%;
}
#nav {
  padding: 30px;
}

#nav a {
  font-weight: bold;
  color: #2c3e50;
}

#nav a.router-link-exact-active {
  color: #42b983;
}
/* 档案卡样式 */
.list_content {
  background: white;
  font-size: 14px;
}
.health {
  background: #eee;
}
.list_content h2 {
  background: #eee;
  font-size: 14px;
  font-weight: normal;
  padding: 8px 5px;
}
.list_content li {
  display: flex;
  width: 90%;
  margin: 0 auto;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  justify-content: space-between;
}
/* 编辑档案卡  样式 */
.content li {
  line-height: 35px;
  padding: 10px 8px;
  border-bottom: 1px solid #eee;
}
.content li span {
  padding-right: 8px;
}
.content li input {
  border: none;
  outline: none;
  background: none;
}
/* 按钮 */
.btn {
  width: 100%;
  margin: 8px 0;
  padding: 12px 0;
  background: #eee;
  border: none;
  outline: none;
  border-radius: 5px;
  color: #999;
  font-size: 16px;
}
/* 获取验证码 */
.getCode {
  background: none;
  outline: none;
  border: 1px solid #eee;
  padding: 5px 8px;
  float: right;
}
</style>
